package com.huawei.hwclouds.lubanops.demo.common.exception;

import org.junit.Assert;
import org.junit.Test;

/**
 * @author y00438022
 * @since 2020/12/30
 **/
public class ErrorCodeParserTest {

    @Test
    public void test() {
        String serviceCode = "0000";
        String code = "1111";
        String ss = ErrorCodeParser.toErrorCodeString(serviceCode, code);
        String[] result = ErrorCodeParser.parseString(ss);
        Assert.assertEquals(result[1], serviceCode);
        Assert.assertEquals(result[2], code);
    }
}
